﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WcfHost {
    /// <summary>
    /// Generic interface for a thread that can be started directly from configuration settings.
    /// </summary>
    public interface IWcfHostWorker {

        /// <summary>
        /// Stops the thread.
        /// </summary>
        void Stop();

        /// <summary>
        /// Starts the thread.
        /// </summary>
        void Start();

        /// <summary>
        /// Gets or sets the thread run interval. 
        /// </summary>
        /// <value>The interval.</value>
        int Interval { get; set; }


        /// <summary>
        /// Gets or sets the name of the thread
        /// </summary>
        /// <value>The name.</value>
        string Name { get; set; }
    }
}
